import Vue from 'vue'
import Router from 'vue-router'

// 路由懒加载
const home = () => import('@/views/home')
const poster = () => import('@/views/poster')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    {
      path: '/poster',
      name: 'poster',

      component: poster
    }
  ]
})